import Cookies from 'js-cookie'
/* token储存 */
const TokenKey = 'RZToken'
export function getToken() {
	return Cookies.get(TokenKey)
}
export function setToken(token) {
	return Cookies.set(TokenKey, token)
}
export function removeToken() {
	return Cookies.remove(TokenKey)
}

/* token时间戳储存 */
const tokenTime = 'CHWTOKENTIME'
export function setTokenTime() {
	return Cookies.set(tokenTime, Date.now())
}
export function getTokenTime() {
	return Cookies.get(tokenTime)
}
